home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
XCSHELL
/
XCMDCONS.H
< prev
next >
Wrap
Text File
|
1991-08-31
|
2KB
|
61 lines
//
// "XcShell" Skeletal XCMD/XFCN constants
//
// Copyright ⌐1991 Mark M. Owen -- All rights reserved
//
#pragma once
//////////////////////////////////////////////////////////////
// the following constants need NO modification //
//////////////////////////////////////////////////////////////
#define DEAD 1
#define LIVE 0
#define vInError -1
//////////////////////////////////////////////////////////////
// use unique values for the constants below //
//////////////////////////////////////////////////////////////
#define GLOBALTYPE 'pGlb'
#define GLOBALS "\pXCMDGlobals"
#define VERBS "\pXCMDVerbs"
#define NPARAMS "\pXCMDNParams"
#define ERRORTAG "\pXCMDErrorTag"
#define ERRORS "\pXCMDErrors"
//////////////////////////////////////////////////////////////
// The entries in the verbs enumeration MUST be in the //
// same order as the strings in the VERBS STR# resource. //
//////////////////////////////////////////////////////////////
enum verbs {
vVersion
,vDispose
//////////////////////////////
// Add other verbs here //
//////////////////////////////
};
//////////////////////////////////////////////////////////////
// The entries in the errors enumeration MUST be in the //
// same order as the strings in the ERRORS STR# resource. //
//////////////////////////////////////////////////////////////
enum errors {
errNone = 0
,errMissingFunction
,errUnrecognizedVerb
,errWrongParamCount
,errParam2Invalid
,errIndexOutOfBounds
,errPositiveNumberRequired
,errOneOrGreaterRequired
,errTwoOrGreaterRequired
,errNoMemInGeneral
,errNonZeroRequired
//////////////////////////////
// Add other errors here //
//////////////////////////////
};